﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<z.m.db.UserProfile>" %>
<% using(Html.BeginForm("_AjaxAdminster","User",FormMethod.Post,new { id = "FormUser"+Model.UserId })){
		%>
	<%: Html.TextBoxFor(m => m.UserId, new {readOnly=true})%>
	<%: Html.TextBoxFor(m => m.UserName) %>
	<%:Html.CheckBoxFor(m=>m.IsAdmin) %>
	<input type="button" value="Save" onclick="ajaxSubmit('FormUser<%:Model.UserId %>');"/>
<%} %>